<include file="Public:header" />
			<include file="Public:menu" />
			<div id="right">
				<div class="top"></div>
				<div class="app_right_banner">
					<div class="app_userinfo">
						<p class="app_module">相片编辑</p>
					</div>
				</div>
				<div class="app_right_menu">
					<div class="arm_1">
						相片编辑
					</div>
					<div class="arm_2">
						<a href="__APP__/showalbum/{.albumid}">返回的相册</a>					
					</div>
					<div class="arm_2">
						<a href="__URL__/uploadphoto/albumid/{.albumid}">上传更多相片</a>
					</div>
				</div>
				<div class="app_right_count">
					共{.count}张
				</div>
				<div>
					<form action="__URL__/updatephoto" method="post">
						<volist name="list" id="photo">
						<div class="editphoto">
							<div class="editphoto_left">
								描述:<br/>
								<TEXTAREA NAME="photodesc[]" ROWS="7" COLS="35">{$photo['photodesc']}</TEXTAREA>
							</div>
							<div class="editphoto_right">
								<p>
								<img src="__PUBLIC__/Uploads/photo/small/{$photo['photoname']}"/>
								</p>
								<p>
									<INPUT TYPE="radio" NAME="default" value="{$photo['photoname']}">设为封面
								</p>
								<p>
									<!--<INPUT TYPE="checkbox" NAME="delete[]" value="{$photo.id}">删除此相片-->
									<a href="__URL__/showphoto/id/{$photo['id']}">返回相片</a>
									<input type="hidden" name="id[]" value="{$photo['id']}"/>
								</p>
							</div>
						</div>
						</volist>
						<div class="editphoto_submit">
							<p>
								<input type="hidden" name="albumid" value="{.albumid}"/>
								<input type="submit" value="保存编辑" class="input2"/>
								<?php 
									if($_GET["count"]>1){
								 ?>
								<input type="button" class="input2" value="返回相册" onclick="location.href=APP+'/showalbum/{.albumid}'"/>
								<?php }else{ ?>
								<input type="button" class="input2" value="返回相片" onclick="location.href=APP+'/showphoto/{.id}'"/>
								<?php } ?>
							</p>
						</div>
					</form>
				</div>
			</div>
<include file="Public:footer" />